package com.luhongzhe.gameview;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.content.Intent;

import com.luhongzhe.WayFd;

/**
 * @author 	luhongzhe
 * @email  	azhe0660@gmail.com
 * @date   	2011-10-17
 */

public class GameViewList
{
	public static int FALLING_BOX = 0;
	public static int FALLING_BOX2 = 1;
	
	private static List<HashMap<String, Object>> lst;
	
	public static List<HashMap<String, Object>> getData()
	{
		if (lst == null)
		{
			lst = new ArrayList<HashMap<String,Object>>();
			addGame("fallingBox", FALLING_BOX);
			addGame("fallingBox2", FALLING_BOX2);
			addGame("fallingBox", FALLING_BOX);
			addGame("fallingBox2", FALLING_BOX2);
			addGame("fallingBox", FALLING_BOX);
			addGame("fallingBox2", FALLING_BOX2);
			addGame("fallingBox", FALLING_BOX);
			addGame("fallingBox2", FALLING_BOX2);
		}
    	
		return lst;
	 }
	
	private static void addGame(String text, int id)
	{
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put("title", text);
		map.put("id", id);
		
		lst.add(map);
	}
}
